In mathematics, the inverse trigonometric functions (occasionally called cyclometric functions[1]) are the inverse functions of the trigonometric functions with suitably restricted domains .
The notations sin−1, cos−1, etc. are often used for arcsin, arccos, etc., but this convention logically conflicts with the common semantics for expressions like sin2(x), which refer to numeric power rather than function composition, and therefore may result in confusion between multiplicative inverse and compositional inverse.
In computer programming languages the functions arcsin, arccos, arctan, are usually called asin, acos, atan. Many programming languages also provide the two-argument atan2 function, which computes the arctangent of y / x given y and x, but with a range of (−π, π].
Since none of the six trigonometric functions are one-to-one, they must be restricted in order to have inverse functions. Therefore the ranges of the inverse fuctions are subsets of the domains of the original functions
For example, just as the square root function is defined such that y2 = x, the function y = arcsin(x) is defined so that sin(y) = x. There are multiple numbers y such that sin(y) = x; for example, sin(0) = 0, but also sin(π) = 0, sin(2π) = 0, etc. It follows that the arcsine function is multivalued: arcsin(0) = 0, but also arcsin(0) = π, arcsin(0) = 2π, etc. When only one value is desired, the function may be restricted to its principal branch. With this restriction, for each x in the domain the expression arcsin(x) will evaluate only to a single value, called its principal value. These properties apply to all the inverse trigonometric functions.
The principal inverses are listed in the following table.
Name | Usual notation | Definition | Domain of x for real result | Range of usual principal value (radians) |
Range of usual principal value (degrees) |
---|---|---|---|---|---|
arcsine | y = arcsin x | x = sin y | −1 ≤ x ≤ 1 | −π/2 ≤ y ≤ π/2 | −90° ≤ y ≤ 90° |
arccosine | y = arccos x | x = cos y | −1 ≤ x ≤ 1 | 0 ≤ y ≤ π | 0° ≤ y ≤ 180° |
arctangent | y = arctan x | x = tan y | all real numbers | −π/2 < y < π/2 | −90° < y < 90° |
arccotangent | y = arccot x | x = cot y | all real numbers | 0 < y < π | 0° < y < 180° |
arcsecant | y = arcsec x | x = sec y | x ≤ −1 or 1 ≤ x | 0 ≤ y < π/2 or π/2 < y ≤ π | 0° ≤ y < 90° or 90° < y ≤ 180° |
arccosecant | y = arccsc x | x = csc y | x ≤ −1 or 1 ≤ x | −π/2 ≤ y < 0 or 0 < y ≤ π/2 | -90° ≤ y < 0° or 0° < y ≤ 90° |
If x is allowed to be a complex number, then the range of y applies only to its real part.
Complementary angles:
Negative arguments:
Reciprocal arguments:
If you only have a fragment of a sine table:
Whenever the square root of a complex number is used here, we choose the root with the positive real part (or positive imaginary part if the square was negative real).
From the half-angle formula , we get:
Each of the trigonometric functions is periodic in the real part of its argument, running through all its values twice in each interval of 2π. Sine and cosecant begin their period at 2πk − π/2 (where k is an integer), finish it at 2πk + π/2, and then reverse themselves over 2πk + π/2 to 2πk + 3π/2. Cosine and secant begin their period at 2πk, finish it at 2πk + π, and then reverse themselves over 2πk + π to 2πk + 2π. Tangent begins its period at 2πk − π/2, finishes it at 2πk + π/2, and then repeats it (forward) over 2πk + π/2 to 2πk + 3π/2. Cotangent begins its period at 2πk, finishes it at 2πk + π, and then repeats it (forward) over 2πk + π to 2πk + 2π.
This periodicity is reflected in the general inverses where k is some integer:
Simple derivatives for real and complex values of x are as follows:
Only for real values of x:
For a sample derivation: if , we get:
Integrating the derivative and fixing the value at one point gives an expression for the inverse trigonometric function as a definite integral:
When x equals 1, the integrals with limited domains are improper integrals, but still well-defined.
Like the sine and cosine functions, the inverse trigonometric functions can be calculated using infinite series, as follows:
Leonhard Euler found a more efficient series for the arctangent, which is:
(Notice that the term in the sum for n= 0 is the empty product which is 1.)
Alternatively, this can be expressed:
Two alternatives to the power series for arctangent are these generalized continued fractions:
The second of these is valid in the cut complex plane. There are two cuts, from −i to the point at infinity, going down the imaginary axis, and from i to the point at infinity, going up the same axis. It works best for real numbers running from −1 to 1. The partial denominators are the odd natural numbers, and the partial numerators (after the first) are just (nz)2, with each perfect square appearing once. The first was developed by Leonhard Euler; the second by Carl Friedrich Gauss utilizing the Gaussian hypergeometric series.
For real and complex values of x:
For real x ≥ 1:
All of these can be derived using integration by parts and the simple derivative forms shown above.
Using , set
Then
Then
and
Back-substitute for x to yield
The two-argument atan2 function computes the arctangent of y / x given y and x, but with a range of (−π, π]. In other words, atan2(y, x) is the angle between the positive x-axis of a plane and the point (x, y) on it, with positive sign for counter-clockwise angles (upper half-plane, y > 0), and negative sign for clockwise angles (lower half-plane, y < 0). It was first introduced in many computer programming languages, but it is now also common in other fields of science and engineering.
In terms of the standard arctan function, that is with range of (−π/2, π/2), it can be expressed as follows:
It also equals the principal value of the argument of the complex number x + iy.
This function may also be defined using the tangent half-angle formulae as follows:
provided that either x > 0 or y ≠ 0. However this fails if given x ≤ 0 and y = 0 so the expression is unsuitable for computational use.
The above argument order (y, x) seems to be the most common, and in particular is used in ISO standards such as the C programming language, but a few authors may use the opposite convention (x, y) so some caution is warranted. These variations are detailed at Atan2.
These functions may also be expressed using complex logarithms. This extends in a natural fashion their domain to the complex plane.
Elementary proofs of these relations proceed via expansion to exponential forms of the trigonometric functions.
(exponential definition of sine)
Let
Then
(the positive branch is chosen)
This is derived from the tangent addition formula
by letting
Inverse trigonometric functions are useful when trying to determine the remaining two angles of a right triangle when the lengths of the sides of the triangle are known. Recalling the right-triangle definitions of sine, for example, it follows that
Often, the hypotenuse is unknown and would need to be calculated before using arcsine or arccosine using the Pythagorean Theorem: where is the length of the hypotenuse. Arctangent comes in handy in this situation, as the length of the hypotenuse is not needed.
For example, suppose a roof drops 8 feet as it runs out 20 feet. The roof makes an angle θ with the horizontal, where θ may be computed as follows:
For angles near 0 and π, arccosine is ill-conditioned and will thus calculate the angle with reduced accuracy in a computer implementation (due to the limited number of digits). Similarly, arcsine is inaccurate for angles near −π/2 and π/2. To achieve full accuracy for all angles, arctangent or atan2 should be used for the implementation.